package com.fhzn.boss.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author fhzn
 */
@Data
@Accessors(chain = true)
@TableName(value = "tag", autoResultMap = true)
public class Tag extends BaseEntity {

    @TableId
    private Integer id;

    private Integer parentId;

    private String type;

    private Boolean ifHidden;

    private String code;

    private String name;

    private Integer sort;

    private String appCode;

    private String comment;

    @TableField(typeHandler = JacksonTypeHandler.class)
    private TagExtension extension;

    private Boolean ifDeleted;
}
